package com._bytecode.__cglib;

public class Test {

    public static void main(String[] args) {
//        PurchaserImpl purchaser = new PurchaserImpl();
//        CglibProxy cglibProxy = new CglibProxy();
//        IPurchaser iPurchaser = (IPurchaser) cglibProxy.getProxyInstance(purchaser);
//        iPurchaser.buy();


        CglibProxy cglibProxy = new CglibProxy();
        IPurchaser iPurchaser = (IPurchaser) cglibProxy.getProxyInstance(PurchaserImpl.class);
        iPurchaser.buy();
    }

}
